import 'package:auto_route/auto_route.dart';
import 'package:convergence_media/navigator/app_router.dart';
import 'package:convergence_media/wigets/convergence_app_bar.dart';
import 'package:flutter/material.dart';

@RoutePage()
class VideoScreen extends StatelessWidget {
  const VideoScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return AutoTabsRouter.tabBar(
      routes: const [
        VideoRecommandRoute(),
        LiveStreamingRoute(),
        ChannelRoute(),
      ],
      builder: (context, child, tabController) {
        final tabsRouter = AutoTabsRouter.of(context);
        return Column(
          children: [
            ConvergenceAppTabBar(
              tabsRouter: tabsRouter,
              tabController: tabController,
              tabs: const [
                Text('推荐'),
                Text('千里眼'),
                Text('频道'),
              ],
            ),
            Expanded(child: child),
          ],
        );
      },
    );
  }
}
